package day1113_1;

import java.io.File;

public class FileDemoHomeWork {
    public static void main(String[] args) {
        File f4=new File("D:\\");
        File[] fs=f4.listFiles();//将内容全部获取
        for (File f:fs ) {
            System.out.println(f.getName());
        }
    }
}
